import { BasicFetchResult } from '@/api/model/baseModel'
import { StaffModel } from './staffModel'

/**
 * 服务商模型
 */
export interface ProviderModel {
  id: number
  name: string
  // 预留员工
  reserve: number
  contact: string
  phone: string
  detail: string
  doorplate: string
  jd: string
  wd: string
  logo?: string
  card_front: string
  card_back: string
  license: string
  sort: number
  create_time: string
  update_time: string
}

export interface ScheduleModel {
  id: number
  provider_id: number
  rule?: StaffModel[]
  schedule_day: string
  create_time: string
  update_time: string
}

export type ProviderListGetResultModel = BasicFetchResult<ProviderModel>
export type ScheduleGetResultModel = BasicFetchResult<ScheduleModel>
